package com.llsydn.hello;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

/**
 * @author lilinshen
 * @title activity的生命周期
 * @description 请填写相关描述
 * @date 2018/8/30 11:45
 */
public class LifeCycleActivity extends AppCompatActivity {

    public LifeCycleActivity() {
        Log.e("TAG", "LifeCycleActivity");
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Log.e("TAG", "onCreate()");
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_life_cycle);
    }

    @Override
    protected void onStart() {
        Log.e("TAG", "onStart()");
        super.onStart();
    }

    @Override
    protected void onResume() {
        Log.e("TAG", "onResume()");
        super.onResume();
    }

    @Override
    protected void onPause() {
        Log.e("TAG", "onPause()");
        super.onPause();
    }

    @Override
    protected void onRestart() {
        Log.e("TAG", "onRestart()");
        super.onRestart();
    }

    @Override
    protected void onStop() {
        Log.e("TAG", "onStop()");
        super.onStop();
    }

    @Override
    protected void onDestroy() {
        Log.e("TAG", "onDestroy()");
        super.onDestroy();
    }

}
